﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;

namespace ApiTest
{
    class Program
    {
        static void Main(string[] args)
        {
            var httpClient = new HttpClient();
            var result = httpClient.GetStringAsync("http://apis.haoservice.com/lifeservice/train/ypcx?date=2016-11-17&from=西安&to=太原&key=fc425353940048d0934720944716f638");

            Console.WriteLine(result.Result);

            Console.ReadLine();
        }
    }
}
